﻿using IntroToMVC.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace IntroToMVC.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            Dinosaur Dino = new Dinosaur()
            {
                Legs = 4, 
                Species = "T-Rex", 
                Weight = 20000.1,
                isAlive = false
            };
            Dino.Species = "T-Rex";
            var s = "Velociraptor";
            Dinosaur Raptor = new Dinosaur(s, "Very Meat Eating");
            var n = Raptor.Noise();
            List<int> ints = new List<int>()
            {
                55, 12, 7, 13, 6
            };
            ints.Add(35);
            ints.Add(42);
            List<Stuff> stuffs = new List<Stuff>()
            {
                new Stuff("things"),
                new Stuff(55),
                new Stuff("String"){ MyBool=true},
                new Stuff(true),
                new Stuff(200.5555)
            };
           Animal animal = new Dinosaur();
           var q = animal.Noise();
           animal.Legs = 48;
           //int x = 5;
           List<Animal> animals = new List<Animal>();

           Dinosaur.GoExtinct();
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}